package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Taste;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface TasteService {

	public Taste saveTaste(Taste taste);

	public Set<Taste> loadTastes();

	public Set<Taste> loadReferenceTastes(Set<Taste> tastes);

	public Set<Taste> loadTastesByIdSet(Set<Integer> tastesId);

	public Map<String, ?> loadTasteObjectReferencedSet(Taste taste);

	public Map<String, ?> loadTasteClassReferencedSet(Taste taste);

	public void deleteTaste(Taste taste);

	public void deleteTastes(Set<Integer> deleteTastesId);

	public List<Taste> findAllTastes(Integer startResult, Integer maxRows);

	public Taste findTasteByPrimaryKey(Integer id);

	public Integer countTastes();

	public Integer countTastes(CmiPagination page);

	public Integer countTastesByName(String queryName);

	public Integer countTastesByDetachedCriteria(CmiPagination page);

}
